package org.yenn.pattern.aliyun.behavioral.command.impl;

import lombok.AllArgsConstructor;
import org.yenn.pattern.aliyun.behavioral.command.Order;
import org.yenn.pattern.aliyun.behavioral.command.Stock;

/**
 * 步骤 3
 * 创建实现了 Order 接口的实体类。
 */
@AllArgsConstructor
public class BuyStock implements Order {
    private Stock abcStock;


    @Override
    public void execute() {
        abcStock.buy();
    }
}
